#pragma once

#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
#define  IN
#define  OUT
class Service
{
public:
	Service(void);
	~Service(void);
	bool m_CreateService(IN wchar_t *sys_path);
	bool m_StartService(IN wchar_t *sys_path);
	bool m_StopService(IN wchar_t *sys_path);
	bool m_DeleteService(IN wchar_t *sys_path);
	std::wstring m_GetlastError(void);
private:
	bool GetDriverName(IN wchar_t *sys_path, OUT wchar_t *drivername, IN int drivernameLen);
	wstring m_lasterror;
};
